<template>
    <div id="page">
		<div style="width: 100vw;min-height: 100vh;">
	       <img :src="src" alt="" style="width:100%">
	    </div>
	</div>
</template>

<script>
export default {
	data(){
		return {
			src:'',
			fid:''
		}
	},
    mounted(){
		this.fid=this.$route.query.fid
		this.src=this.$store.state.allfile
		this.getData()
	},
	methods:{
		getData(){
			var _this=this
			this.$http.get(_this.httpurl('share/shareCard'),{params:{id:_this.fid}})
			.then((res)=>{
				var data=res.data
				this.src=data.greetingCard
				sessionStorage.setItem('sharePic',data.greetingCard)
			})
		},

	}
}
</script>